<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_infos', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('u_id');
            $table->string('name')->nullable()->comment('姓名');
            $table->string('mobile')->nullable()->comment('手机号');
            $table->smallInteger('gender')->default(1)->comment('性别');
            $table->text('desc')->nullable()->comment('个人简介');
            $table->string('political_outlook')->default(1)->comment('政治面貌');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('user_infos');
        //
    }
}
